export default {
  createGoods:{//商品创建
    url: '/his/goods/create',
    require:['token','clientid','goodsTypeId','name','departmentId']
  },
  importsGoods:{//商品导入
    url: '/his/goods/imports',
    require:['token','clientid','goodsTypeId','name','scheduleId','skus']
  },
  deleteGoods:{//商品删除
    url: '/his/goods/delete',
    require:['token','clientid','id']
  },
  updateGoods:{//商品更新
    url: '/his/goods/update',
    require:['token','clientid','id']
  },
  getGoodsById:{//获取商品
    url: '/his/goods/get',
    require:['token','clientid','id']
  },
  getGoodsList:{//获取商品列表
    url: '/his/goods/list',
    require:['token','clientid','departmentId']
  },//
  createGoodsSku:{//创建商品规格
    url: '/his/goodsSku/create',
    require:['token','clientid','goodsId','props','price']
  },
  deleteGoodsSku:{//删除商品规格
    url: '/his/goodsSku/delete',
    require:['token','clientid','id']
  },
  updateGoodsSku:{//更新商品规格
    url: '/his/goodsSku/update',
    require:['token','clientid','id']
  },
  getGoodsSkuId:{//获取商品规格
    url: '/his/goodsSku/get',
    require:['token','clientid','id']
  },
  getGoodsSkuList:{//获取商品规格列表
    url: '/his/goodsSku/list',
    require:['token','clientid']//goodsId,sn
  },
  createGoodsType:{//创建商品类型
    url: '/his/goodsType/create',
    require:['token','clientid','name']
  },
  deleteGoodsType:{//删除商品类型
    url: '/his/goodsType/delete',
    require:['token','clientid','id']
  },
  updateGoodsType:{//更新商品类型
    url: '/his/goodsType/update',
    require:['token','clientid','id']//name,data
  },
  getGoodsTypeById:{//通过id获取商品类型
    url: '/his/goodsType/get',
    require:['token','clientid','id']
  },
  getGoodsTypeList:{//获取商品类型列表
    url: '/his/goodsType/list',
    require:['token','clientid']
  },
}
